﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<SecurityLog.Models.AdminIndexModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Index
</asp:Content>

<asp:Content ContentPlaceHolderID="MainClassContent" runat="server">
    WithSubNav
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <ul class="subnav">
        <li><%= Html.ActionLink("Create New User", "UserAdd") %></li>
    </ul>

    <h2>Enabled users</h2>

    <ul class="users">
    <% foreach (var user in Model.EnabledUsers)
       { %>
        <li><a href="/Admin/UserEdit/<%= user.Id %>"><%= Html.Encode(user.Name)%> (<%= Html.Encode(user.Initials)%>)</a></li>
    <% } %>
    </ul>
    <p>
    </p>

    <h2>Disabled users</h2>

    <ul class="users">
    <% foreach (var user in Model.DisabledUsers)
       { %>
        <li><a href="/Admin/UserEdit/<%= user.Id %>"><%= Html.Encode(user.Name)%> (<%= Html.Encode(user.Initials)%>)</a></li>
    <% } %>
    </ul>

</asp:Content>

